{include file="header.tpl.html"}

<div id="divContent" class="widthContent radiusDiv shadowDiv backWhite textAlignLeft tableDiv" style="height:auto;">
	<div class="tableDiv" >
		<div class="rowTableDiv" > 
			<div class="cellTableDiv widthContent divFloat darkBlueEffect leftTopRadiusDiv rightTopRadiusDiv"  style="height: 25px;"> 
				&nbsp;
			</div>
		</div>			
	</div>	
	<div class="tableDiv mediumGreyDiv2" style="padding-top:0px;padding-bottom:0px;">
		
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent1 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Seleziona una data per i tracciati</p>
			</div>
			<div class="cellTableDiv2 widthContent2 divFloat " > 
				<p class="pCellDiv2">
					<input type="text" name="dataReport" id="dataReport" value="{$dataReport}" class="inputGeneral1 radiusInput width150" readOnly/>
					<input type="button" class="buttonCanc" onclick="CalendarClear('dataReport','','')" value="" title="Cancella Data" />&nbsp;&nbsp;
					<input type="button" class="buttonCalendar2" onclick="popupCalendar('dataReport',event,'{$maxDate}','','')" />
				</p>
			</div>
		</div>
	</div>
	
	
 
	
	<div class="tableDiv" >
		<div class="rowTableDiv" >                        
			<div class="cellTableDiv widthContent divFloat darkBlueEffect leftBottomRadiusDiv rightBottomRadiusDiv"  style="height: 0px;"> 
				&nbsp;
			</div>
		</div>			
	</div>	
</div>

<div class="widthContent textAlignRight tableDiv" style="margin-top:20px;" >
	<input type="button" value="Esporta Tracciati" class="buttonNew3 effectImage radiusButton shadowButton"  onclick="_submitSave()"/>
</div>	



</br>


{include file="funcMisc.js"}
{include file="funcSelect.js"}
{include file="funcPopup.js"}
<script type="text/javascript" src="lib_js/calendar.js"></script>

<input type="hidden" name="save" id="save" value="" />

<script type="text/javascript">

{literal}

function _submitSave()
{
// 	popMsg.resetValueObjMsg();
	
	if (document.main.dataReport.value == '')
	{
		usrMessageDsc = "Selezionare una data";
		popMsg.warning();	
		return;
	}
	
	document.main.save.value = 'S';
	document.main.submit();
	
	/*
	if (document.main.idCampagna.value == '')
	{
		usrMessageDsc = "Selezionare la campagna lavorata";
		popMsg.warning();	
		return;
	}
	if (document.main.oreLavorate.value == '')
	{
		usrMessageDsc = "Selezionare le ore lavorate";
		popMsg.warning();	
		return;
	}
	if (document.main.minutiLavorati.value == '')
	{
		usrMessageDsc = "Selezionare i minuti lavorati";
		popMsg.warning();	
		return;
	}
	
	if (document.main.minutiLavorati.value == 0 && document.main.oreLavorate.value == 0)
	{
		usrMessageDsc = "Non puoi inserire un'orario di lavoro di 0 ore e 0 minuti";
		popMsg.error();	
		return;
	}*/
	
	
	//usrMessageDsc = "Operazione Eseguita!";
	//popMsg.info();
}
	
	
{/literal}


</script>
 
{include file="usrObjPopupMsg.tpl.html"}
{include file="footer.tpl.html"} 
 

